<?php
/* @var $this AppuserController */
/* @var $model Appuser */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'appuser-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note"><?php echo Yii::t('base','Fields with <span class="required">*</span> are required.');?></p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'userid'); ?>
		<?php echo $form->textField($model,'userid'); ?>
		<?php echo $form->error($model,'userid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'send_id'); ?>
		<?php echo $form->textField($model,'send_id',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'send_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'imei'); ?>
		<?php echo $form->textField($model,'imei',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'imei'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'platform'); ?>
		<?php echo $form->dropDownList($model,'platform',array('0'=>'android','1'=>'ios')); ?>
		<?php echo $form->error($model,'platform'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'app_id'); ?>
		<?php //echo $form->textField($model,'app_id'); ?>
		<?php echo $form->dropDownList($model,'app_id',CHtml::listData( Application::model()->findAll(), 'application_id', 'application_name')  ); ?>
		<?php echo $form->error($model,'app_id'); ?>
	</div>

	<div class="row buttons">
		<?php 
		echo CHtml::submitButton($model->isNewRecord ?  Yii::t('base','Create') : Yii::t('base','Save'));?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
